package com;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

public class Test05 {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入您的用户名:");
        String s1 = sc.nextLine();
        System.out.println("请输入您的密码:");
        String s2 = sc.nextLine();

        FileWriter fw = new FileWriter("HomeWork15\\dir\\cc.txt");
        fw.write(s1);
        fw.write("\r\n");
        fw.write(s2);
        fw.close();
    }
}
